<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp"%>
<script type="text/javascript">
	$(function(){
		$("#my_family_right").load("myFamilyRight.htm");
		$("#jamesDoing").load("doing.htm");
		$("#feed").load("feed.htm");
		$("#leaveMessage").load("leaveMessage.htm");
	});
	
	//再次向会员发一份邮箱验证
	function sendEmailAgain(self){
		$(self).html("正在发送...");
		$.get("sendEmailAgain.htm",function(data){
			if(data=='success'){
				$(self).attr("onclick","");
				$(self).attr("style","color: green;");
				$(self).html("发送成功");
				setTimeout("$('#deleteSendEmail').remove()",3000);
			}else{
				$(self).attr("onclick","");
				$(self).attr("style","color: red;");
				$(self).html("暂时繁忙，稍候重试");
				setTimeout("$('#deleteSendEmail').remove()",3000);
			}
		});
	}
	
</script>
<div class="h_main2">
	<div class="h_content">
		<c:if test="${family.avatar=='images/avatar/family.jpg' || !isActive }">
			<div class="family_prompt" id="my_family_data_tip" style="display: block;">
				<c:if test="${family.avatar=='images/avatar/family.jpg' }">
				<span>
					欢迎回到果果街！ 您还没有上传家庭的头像，赶快完善您
					<a href="javascript:void(0);" onclick="setHash('#toFamilyAvatar')">家的资料</a>
					，和您的邻居们一起分享家的快乐吧。
				</span><br>	
				</c:if>
				<c:if test="${!isActive }">
					<span>
						果果街已经给你的EMAIL发了一个验证信，进入Email点击验证链接即可通过验证。
						<a href="javascript:void(0);" id="deleteSendEmail" onclick="sendEmailAgain(this)" >再发一封</a>
					</span>
				</c:if>
			</div>	
		</c:if>
		<div id="jamesDoing"></div>
		<div class="h_news">
			<img src="images/home_images/ad1.jpg" alt="广告" />
		</div>
		<%-- 动态 --%>
		<div id="feed"></div>
		<!--留言板-->
		<div id="leaveMessage"></div>
	</div>
	<div class="h_sidebar2" id="my_family_right">
	</div>
</div>
